package org.grayrabbit.cms.plugin.elements;

import java.util.Map;

/**
 * @author sys53
 * @version 1.0
 * @created 06-一月-2012 15:59:47
 */
public class ResourceLocation {

	private String location;
	private String name;
	private String type;
	private String contentType;
	private String content;
	private Map<String, String> params;
	
	public String getLocation() {
		return location;
	}

	public void setLocation(String location) {
		this.location = location;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public String getContentType() {
		return contentType;
	}

	public void setContentType(String contentType) {
		this.contentType = contentType;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public Map<String, String> getParams() {
		return params;
	}

	public void setParams(Map<String, String> params) {
		this.params = params;
	}

	public ResourceLocation(String location, String name, String type,
			String contentType, String content, Map<String, String> params) {
		this.location = location;
		this.name = name;
		this.type = type;
		this.contentType = contentType;
		this.content = content;
		this.params = params;
	}

	public String getParameter(String key) {
		return this.params.get(key);
	}

}